cmake_minimum_required(VERSION 3.10)

# 认证服务库
add_library(auth_service_lib
    auth_service.cpp
)

# 添加头文件搜索路径
target_include_directories(auth_service_lib PUBLIC
    ${CMAKE_SOURCE_DIR}/include
)

# 链接依赖库
target_link_libraries(auth_service_lib PUBLIC
    network_lib
    database_lib
    cache_lib
    common_logger_lib
    crypto
    uuid
)

# 认证服务可执行文件
add_executable(auth_service
    main.cpp
)

# 链接依赖库
target_link_libraries(auth_service
    auth_service_lib
    common_lib
    network_lib
    database_lib
    cache_lib
    mysqlclient
    hiredis
    rdkafka
    uuid
) 